package entity

import (
	"shqsoft.cn/pasnj/base"
)

type PermissionSel struct {
	ID                 int    `gorm:"primary_key;column:ID"`
	PermissionId       string `gorm:"column:PermissionId"`
	PermissionName     string `gorm:"column:PermissionName"`
	ParentPermissionId int    `gorm:"column:ParentPermissionId"`
	PermissionType     string `gorm:"column:PermissionType"`
	SortNo             int    `gorm:"column:SortNo"`
	ReactComponent     string `gorm:"column:ReactComponent"`
	ISQY               bool   `gorm:"column:ISQY"`
}

//TableName Role 角色表名
func (PermissionSel) TableName() string {
	return "v_Permission"
}

func PermissionSelEF() base.EntityFunc {
	return func() interface{} {
		entity := PermissionSel{}
		return &entity
	}
}
func PermissionSelESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []PermissionSel
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("PermissionSel", base.NewDefaultDao(PermissionSelEF(), PermissionSelESF(), nil))
}
